package com.zero.lite.dao.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 菜单角色
 * </p>
 *
 * @author zero
 * @since 2018-05-04
 */
@TableName("lite_menu_role")
public class MenuRole extends Model<MenuRole> {

    private static final long serialVersionUID = 1L;

	@TableId(value="role_menu_id", type= IdType.AUTO)
	private Integer roleMenuId;
	@TableField("role_id")
	private Integer roleId;
	@TableField("menu_id")
	private Integer menuId;


	public Integer getRoleMenuId() {
		return roleMenuId;
	}

	public void setRoleMenuId(Integer roleMenuId) {
		this.roleMenuId = roleMenuId;
	}

	public Integer getRoleId() {
		return roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}

	public Integer getMenuId() {
		return menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	@Override
	protected Serializable pkVal() {
		return this.roleMenuId;
	}

	@Override
	public String toString() {
		return "MenuRole{" +
			"roleMenuId=" + roleMenuId +
			", roleId=" + roleId +
			", menuId=" + menuId +
			"}";
	}
}
